<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>审批</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

    <meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
">
    <link rel="stylesheet" href="lib/weui.min.css">
    <link rel="stylesheet" href="css/jquery-weui.css">
    <link rel="stylesheet" href="demos/css/demos.css">
    <link rel="stylesheet" href="font/fontscss/iconfont.css">
    <link rel="stylesheet" href="css/common.css">
    <script src="lib/jquery-2.1.4.js"></script>
    <script src="js/jquery-weui.js"></script>

    <style type="text/css">
        a{
            color: #fff;
        }
        .sptop{
            margin: 0 auto;
            width: 100%;
            height: 4.5rem;
            background: #3EA9F5;
            line-height: 5;
            color: #eee;
            font-size: 13px;
        }
        .spleft{
            margin: 11px 0px 0px 0px;
            width: 50%;
            display: inline-block;
            border-right: 1px solid;
            text-align: center;
        }
        .spright{
            width: 48%;
            display: inline-block;
            text-align: center;
        }
        .weui-cells_radio{
            max-height: 13rem;
            overflow: scroll;
        }
    </style>
</head>

<body>
<header>
    <div class="weui-row weui-no-gutter">
        <div class="weui-col-33"></div>
        <div class="weui-col-33">审批</div>
        <div class="weui-col-33" id="ligin_icon">
            <!--<a href="login.html" class="icon pull-right"><i class="iconfont icon-wode"></i></a>-->
        </div>
    </div>
</header>
<div class="weui-cells">
    <!--  <div class="sptop">
          <a href="sqtable.html"><div class="spleft">申请</div></a>
          <a href="daisp.html"><div class="spright">审批</div></a>
      </div>
      <div class="weui-grids">
          <a href="mysq.html" class="weui-grid js_grid">
              <div class="weui-grid__icon">
                  <img src="demos/images/icon_nav_button.png" alt="">
              </div>
              <p class="weui-grid__label">
                  我的申请
              </p>
          </a>
          <a href="mysp.html" class="weui-grid js_grid">
              <div class="weui-grid__icon">
                  <img src="demos/images/icon_nav_cell.png" alt="">
              </div>
              <p class="weui-grid__label">
                  我的审批
              </p>
          </a>
      </div>-->

    <div class="weui-grids">
        <!--<a href="sqtable.html" class="weui-grid js_grid">
            <div class="weui-grid__icon">
                <img src="demos/images/icon_nav_button.png" alt="">
            </div>
            <p class="weui-grid__label">
                资金申请
            </p>
        </a>
        <a href="yfsqtable.html" class="weui-grid js_grid">
            <div class="weui-grid__icon">
                <img src="demos/images/icon_nav_button.png" alt="">
            </div>
            <p class="weui-grid__label">
                应付授信申请
            </p>
        </a>
        <a href="daisp.html" class="weui-grid js_grid">
            <div class="weui-grid__icon">
                <span class="weui-badge" id="pro_size1"val="0" style="position:absolute;left:3rem;">0</span>
                <img src="demos/images/icon_nav_cell.png" alt="">
            </div>
            <p class="weui-grid__label" >
                待审批
            </p>
        </a>-->



        <!-- <a href="yfdaisp.html" class="weui-grid js_grid">
             <div class="weui-grid__icon">
                 <img src="demos/images/icon_nav_cell.png" alt="">
             </div>
             <p class="weui-grid__label">
                 应付授信审批
             </p>
         </a>-->
    </div>
</div>
<!--<div id="test2" class="weui-popup__container popup-bottom">
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal">
        <div class="weui-search-bar" id="searchBar">
            <form class="weui-search-bar__form">
                <div class="weui-search-bar__box">
                    <i class="weui-icon-search"></i>
                    <input type="search" class="weui-search-bar__input" id="searchInput" placeholder="搜索" required="">
                    <a href="javascript:" class="weui-icon-clear" id="searchClear"></a>
                </div>
                <label class="weui-search-bar__label" id="searchText">
                    <i class="weui-icon-search"></i>
                    <span>搜索</span>
                </label>
            </form>
            <a href="javascript:" class="weui-search-bar__cancel-btn" id="searchCancel">取消</a>
            <a href="javascript:" class="weui-search-bar__cancel-btn" id="yesbtn">确定</a>
        </div>

        <div class="weui-cells weui-cells_radio">

        </div>
    </div>
</div>-->
<div class="weui-tabbar">
</div>
<script src="js/web/approve.js"></script>
<script type="text/javascript">

    $(function() {


        $.ajax({
            url: "user/getMenu",
            type: "post",
            async: "false",
            data: { userid: localStorage.getItem("token")},
            success: function (msg) {

                console.info(msg)

                var str="";
                $.each(msg,function(x,y){
                    if(y.id=="27"){//我要投资
                        str+= "<a href=\'touzi.html\' class=\'weui-grid js_grid\'>"
                        str+= "  <div class=\'weui-grid__icon\'>"
                        str+= "   <img src=\'demos/images/icon_nav_button.png\' alt=\'\'>"
                        str+= "   </div>"
                        str+= "   <p class=\'weui-grid__label\'>"
                        str+= "   我要投资"
                        str+= "   </p>"
                        str+= "   </a>"
                    }else if(y.id=="28"){//产品投资
                        str+= "<a href=\'productInvest.html\' class=\'weui-grid js_grid\'>"
                        str+= "  <div class=\'weui-grid__icon\'>"
                        str+= "   <img src=\'demos/images/icon_nav_button.png\' alt=\'\'>"
                        str+= "   </div>"
                        str+= "   <p class=\'weui-grid__label\'>"
                        str+= "    产品投资"
                        str+= "   </p>"
                        str+= "   </a>"
                    }else if(y.id=="29"){//投资确认
                        str+= "<a href=\'investConfirm.html\' class=\'weui-grid js_grid\'>"
                        str+= "  <div class=\'weui-grid__icon\'>"

                        str+= "   <img src=\'demos/images/icon_nav_button.png\' alt=\'\'>"
                        str+= "   </div>"
                        str+= "   <p class=\'weui-grid__label\'>"
                        str+= "  投资确认"
                        str+= "   </p>"
                        str+= "   </a>"
                    }

                });
                $(".weui-grids").append(str);
            }
        })

        $.ajax({
            url: "rzRelease/getTaskMoneyCount",
            type: "post",
            async: "false",
            data: { token: localStorage.getItem("token")},
            success: function (msg) {
                $("#pro_size1").html(msg);
                $("#pro_size1").attr("val",msg);
                $("#pro_size2").html(msg);
                $("#pro_size2").attr("val",msg);
            }
        })
    });


    $("#yesbtn").click(function () {
        //$(".popup-bottom").css("display","none");
    })
    /*    $("#about").click(function () {
     $("#test2").popup();
     });*/
    /* $("#searchInput").bind('input propertychange', function() {
     $.showLoading();
     $(".weui-cells_radio").find("label").remove();

     $.ajax({
     type: "POST",
     url: "user/searchUser",
     async: false,
     data: {
     searchUser:$(this).val()
     },
     success: function (msg) {
     $.each(msg,function (index,val) {
     var random=Math.random();
     var str="";
     str+="<label class=\'weui-cell weui-check__label\' for=\'x"+random+"\'>"
     str+=""
     str+="        <div class=\'weui-cell__bd\'>"
     str+="            <p>"+val.username+"</p>"
     str+="        </div>"
     str+="        <div class=\'weui-cell__ft\'>"
     str+="            <input type=\'radio\' name=\'radio1\' class=\'weui-check\' id=\'x"+random+"\'>"
     str+="            <span class=\'weui-icon-checked\'></span>"
     str+="        </div>"
     str+="    </label>"
     $(".weui-cells_radio").append(str);
     });
     $.hideLoading();
     }, error: function (XMLHttpRequest, textStatus, errorThrown) {
     $.toast("登录失败，请检查网络", "forbidden");
     }
     });

     });*/
</script>

<script src="js/web/checkLogin.js"></script>
</body>
</html>